package com.agileboot.domain.performance.teaching.command;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.PositiveOrZero;
import lombok.Data;

/**
 * 新增教学工作量命令对象
 */
@Data
public class AddTeachingWorkloadCommand {

    @NotNull(message = "教职工ID不能为空")
    private Long userId;

    @NotNull(message = "考核年度不能为空")
    private Integer assessmentYear;

    @PositiveOrZero(message = "通识课程得分不能为负")
    private Double generalCourseScore;

    @PositiveOrZero(message = "学科课程得分不能为负")
    private Double subjectCourseScore;

    @PositiveOrZero(message = "实验课程得分不能为负")
    private Double labCourseScore;

    @PositiveOrZero(message = "教学工作量总分不能为负")
    private Double totalTeachingScore;

    private Long importedByUserId;

}
